package com.hmall.mapper;

import com.hmall.model.ShopUserShares;
import com.hmall.util.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ShopUserSharesMapper extends MyMapper<ShopUserShares> {
    List<Integer> selectByUserId(@Param("userId") Integer userId);

    List<ShopUserShares> selectAllByUserId(@Param("userId")Integer userId,@Param("pageStart") Integer pageStart,@Param("pageSize") Integer pageSize);

    Integer selectByUserIdAndSharesId(@Param("userId")Integer userId,@Param("id") Integer id);
}